package org.chuan.auth.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.chuan.base.domain.BaseDomain;

import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author yaosang
 * @since 2024-04-06
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Permission extends BaseDomain {

    private static final long serialVersionUID = 1L;

    private Long id;
    private String name;
    private String url;
    private String descs;
    private String sn;
    /**
     * 父级权限的id
     */
    private Long parent_id;
    private Permission parent;

    private List<Permission> children = new ArrayList<>();

}
